package com.zhuiyun.project.api.article.service;

import com.zhuiyun.project.api.article.entity.ArticleAudit;
import com.zhuiyun.project.api.article.model.ArticleAuditModel;
import com.zhuiyun.project.api.article.model.ArticleModel;
import com.zhuiyun.project.common.response.CommonResult;
import com.zhuiyun.project.util.pageUtil.PageRequest;
import com.zhuiyun.project.util.pageUtil.PageResult;
import org.apache.ibatis.annotations.Param;

import javax.websocket.Session;
import java.util.Date;
import java.util.List;

public interface ArticleReviewService {

    /**
    * @Author mao
    * @Description TODO 查询出待审核的文章
    * @Date 2023/7/5 14:38
    * @Return com.zhuiyun.project.util.pageUtil.PageResult
    * @param pageRequest
    * @param userName
    * @param articleTitle
    */

    PageResult getArticle(PageRequest pageRequest, String userName, String articleTitle);

/**
 * 审批同意申请
 * @author 温
 * @date 2023/7/17 19:45
 * @parameter [articleAudit]
 * @return com.zhuiyun.project.common.response.CommonResult
 */
    CommonResult addArticleStatus(ArticleAudit articleAudit);



    /**
     * 审批驳回申请
     * @author 温
     * @date 2023/7/17 19:44
     * @parameter [ArticleAudit]
     * @return com.zhuiyun.project.common.response.CommonResult
     */

    CommonResult addArticleUpdate(ArticleAudit articleAudits);


    /**
     * 审核记录查询
     * @author 温
     * @date 2023/7/18 11:17
     * @parameter [articleTitle, pageRequest]
     * @return com.zhuiyun.project.util.pageUtil.PageResult
     */
   PageResult ArticleAuditList( String articleTitle ,PageRequest pageRequest);

}
